package buildcode.util;

import java.util.HashMap;
import java.util.Map;
import java.util.Optional;

public class EnumDictUtil {
    private static final Map<String, String> zhongToYing = new HashMap<>();

    static {
        zhongToYing.put("未删除", "NO_DEL");
        zhongToYing.put("正常", "NORMAL");
        zhongToYing.put("删除", "DELETED");
        zhongToYing.put("已删除", "DELETED");
        zhongToYing.put("生成中", "CREATING");
        zhongToYing.put("完成", "COMPLETE");
        zhongToYing.put("不显示", "NO_SHOW");
        zhongToYing.put("显示", "SHOW");
        zhongToYing.put("标注", "MARK");
        zhongToYing.put("审核", "CHECK");
        zhongToYing.put("修改", "UPDATE");
        zhongToYing.put("启用", "ON");
        zhongToYing.put("禁用", "OFF");
        zhongToYing.put("否", "NO");
        zhongToYing.put("是", "YES");
        zhongToYing.put("未迁移", "NOT_MOVE");
        zhongToYing.put("已迁移", "MOVED");
        zhongToYing.put("启用/上线", "ON");
        zhongToYing.put("禁用/下线", "OFF");
        zhongToYing.put("测试中", "TESTING");
        zhongToYing.put("上线", "ON");
        zhongToYing.put("下线", "OFF");
        zhongToYing.put("私有", "PRIVATE");
        zhongToYing.put("公开", "PUBLIC");
        zhongToYing.put("新增", "NEW_ADD");
        zhongToYing.put("停用", "STOP");
    }

    public static String getYing(String zhong) {
        return zhongToYing.get(zhong);
    }
}
